package com.putao.config;

/**
 * mybatis的相关配置设置
 *
 * @author Jfei
 */
//@Configuration
//@AutoConfigureAfter(DatasourceConfig.class)
//@EnableTransactionManagement
//public class MybatisConfiguration implements TransactionManagementConfigurer {


//    @Autowired
//    private DataSource dataSource;
//
//    /**
//     * 将要执行的sql进行日志打印(不想拦截，就把这方法注释掉)
//     * @return
//     */
//    @Bean
//    public PrintSqlInterceptor sqlPrintInterceptor() {
//        return new PrintSqlInterceptor();
//    }
//
//    @Override
//    public TransactionManager annotationDrivenTransactionManager() {
//        return new DataSourceTransactionManager(dataSource);
//    }
//}
